class AddBetsCountToMatches < ActiveRecord::Migration
  def self.up
    add_column :matches, :bets_count, :integer,:default=>0

    add_index  :matches, :bets_count
  end

  def self.down
    remove_index :matches, :column => :bets_count

    remove_column :matches, :bets_count
  end
end
